package com.deng.eventflow.core.exception;

import com.deng.eventflow.core.Processor;
import com.deng.eventflow.core.Pushable;

import java.util.concurrent.Future;

public class PushNotSupported implements Pushable {
    protected Processor m_processor;

    protected int m_position;

    public PushNotSupported(Processor p, int position) {
        super();
        m_processor = p;
        m_position = position;

    }

    @Override
    public Pushable push(Object o)
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public Future<Pushable> pushFast(Object o)
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public void notifyEndOfTrace() throws PushableException
    {
        throw new UnsupportedOperationException();
    }

    @Override
    public Processor getProcessor()
    {
        return m_processor;
    }

    @Override
    public int getPosition()
    {
        return m_position;
    }


}
